package com.codemonkey.lq.remoteexecute;

import java.util.Properties;

public final class TestClass {
    public static void main(String[] args) {
	System.out.println("this is my test For Execute In remote Server");

	printSeperateLine();

	printJVMVariable();
    }

    private static void printJVMVariable() {
	printContentBetweenLine("本JVM下所有的环境变量:");
	Properties properties = System.getProperties();
	for (Object key : properties.keySet()) {
	    System.out.println(key);
	    System.out.println(properties.get(key));
	    printBlankLine();
	}
    }        

    private static void printSeperateLine() {
	System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~");
    }

    private static void printBlankLine() {
	System.out.println();
    }

    private static void printContentBetweenLine(String content) {
	String line = "~~~~~~~~~~~~~~~~~~~~~~~~~";
	System.out.println(line + content + line);
    }
}
